package com.cwt.service.vo;

import com.cwt.service.domain.vo.MenuTreeVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author chenwt
 * @version V1.0
 * @describe 【】
 * @date 2023年07月19日 14:14:44
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户登录信息")
public class Login implements Serializable {

    private Integer id;

    @ApiModelProperty(value = "用户名", dataType = "String", required = true)
    private String username;

    @ApiModelProperty(value = "密码", dataType = "String")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "最后登录时间")
    private Date logged;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "管理端用户菜单权限")
    private List<MenuTreeVo> menus = new ArrayList<>();

}
